LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := CrossApp_cpp_shared

LOCAL_MODULE_FILENAME := libCrossApp_cpp

LOCAL_SRC_FILES := hellocpp/main.cpp \
../../Classes/AppDelegate.cpp \
../../Classes/RootWindow.cpp \
../../Classes/FirstViewController.cpp \
../../Classes/CommonHttpManager.cpp \
../../Classes/GdDefine.cpp \
../../Classes/Base/GDRoundImageView.cpp \
../../Classes/DataModule/ConfigDataModule.cpp \
../../Classes/Util/GDHttpUtil.cpp \
../../Classes/Util/GDImageFilterUtil.cpp \
../../Classes/Util/GDRegexUtil.cpp \
../../Classes/Util/GDStatisticsUtil.cpp \
../../Classes/Util/GDUtil.cpp \
../../Classes/Util/GumboUtil.cpp \
../../Classes/ViewController/GdChatViewController.cpp \
../../Classes/ViewController/GdWebviewViewController.cpp \
../../Classes/ViewController/ImageFilterViewController.cpp \
../../Classes/ViewController/ImageStickerViewController.cpp \
../../Classes/ViewController/LeftMenuViewController.cpp \
../../Classes/ViewController/RoundImageViewController.cpp \
../../Classes/Views/GDAlertView.cpp \
../../Classes/Views/GDChatItemView.cpp \
../../Classes/Views/GDClippingImageView.cpp \
../../Classes/Views/GDImageView.cpp \
../../Classes/Views/GDShareView.cpp \
../../Classes/Views/GDTaskView.cpp \
../../Classes/Views/GDViewComponent.cpp \
../../Classes/Views/ImageStickerItemView.cpp \
../../Classes/C2DXShareSDK/Android/ShareSDKUtils.cpp \
../../Classes/C2DXShareSDK/C2DXShareSDK.cpp \
../../Classes/C2DXShareSDK/Android/JSON/CCJSONConverter.cpp \
../../Classes/C2DXShareSDK/Android/JSON/cJSON/cJSON.c \
../../Classes/umSDK/android/umSDK.cpp \

#define all-cpp-files
#$(patsubst jni/%,%, $(shell find $(LOCAL_PATH)/../../Classes/ $(LOCAL_PATH) -name #"*.cpp"))  
#endef
#LOCAL_SRC_FILES := $(call all-cpp-files)
			
			
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \
$(LOCAL_PATH)/../../Classes/Base \
$(LOCAL_PATH)/../../Classes/DataModule \
$(LOCAL_PATH)/../../Classes/Util \
$(LOCAL_PATH)/../../Classes/ViewController \
$(LOCAL_PATH)/../../Classes/Views \
$(LOCAL_PATH)/../../Classes/C2DXShareSDK \
$(LOCAL_PATH)/../../Classes/C2DXShareSDK/Android \
$(LOCAL_PATH)/../../Classes/C2DXShareSDK/Android/JSON \
$(LOCAL_PATH)/../../Classes/C2DXShareSDK/Android/JSON/cJSON \
$(LOCAL_PATH)/../../Classes/umSDK \
$(LOCAL_PATH)/../../Classes/umSDK/android \


LOCAL_WHOLE_STATIC_LIBRARIES += CrossApp_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
LOCAL_WHOLE_STATIC_LIBRARIES += CrossApp_extension_static

#$(call import-add-path, C:/work/work_gd/CrossApp-1.1.0)
#$(call import-add-path, C:/work/work_gd/CrossApp-1.1.0/CrossApp/platform/third_party/android/prebuilt)

#$(call import-add-path, D:/ProgramFiles/CrossApp-1.1.0)
#$(call import-add-path, D:/ProgramFiles/CrossApp-1.1.0/CrossApp/the_third_party)

$(call import-add-path, $(LOCAL_PATH)/../../../..)
$(call import-add-path,$(LOCAL_PATH)/../../../../CrossApp/the_third_party/)

include $(BUILD_SHARED_LIBRARY)

$(call import-module,CrossApp)
$(call import-module,CocosDenshion/android)
$(call import-module,extensions)
$(call import-module,CrossApp/the_third_party/curl/prebuilt/android)
